//
//  MyUserModel.swift
//  Venus
//
//  Created by qurongxiang on 2018/9/15.
//  Copyright © 2018年 zhaowang. All rights reserved.
//

import UIKit
import SwiftyJSON

class MyUserModel {
    
    /// 头像
    var headImg:String = ""
    
    var userName:String = ""
    
    var jobName:String = ""
    
    var haveApply:Bool = false //是否已经认证
    
    var institutionId:Int = 0
    
    
    init() {
        
    }
    
    
    init(fromJson json: JSON!){
        if json.isEmpty{
            return
        }
        headImg = json["data"]["user"]["headImg"].stringValue
        userName = json["data"]["user"]["userName"].stringValue
        jobName = json["data"]["user"]["jobName"].stringValue
        haveApply = json["data"]["haveApply"].boolValue
        institutionId = json["data"]["user"]["institutionId"].intValue
    }
    
}
